<#macro shopTop checkLogin=true>
<div class="topNav">
			<div class="top_main clearfix">
				<div class="top_left">
					  <a href="${systemSetting().www}">"话不多说买买买"——欢迎来到anitoys</a>
				        <#if currentAccount()??>
				            <span class="sn-logn"">
				           	 欢迎回来，${currentAccount().account}
				            </span>
				            <a href="${systemSetting().passport}/account/exit" class="sn-regist">退出系统</a>
									<span style="display: none;">
										${currentAccount().account!""}
				                            (${currentAccount().loginType!""})
									 </span>
				        <#else>
				            <span><a href="${systemSetting().passport}/account/login">请登录</a>
				                <a href="${systemSetting().passport}/account/register" class="regist">免费注册</a>
				            </span>
				        </#if>
				</div>
				<div class="top_right">
					<ul>
                <li>
						<span>
							<a href="${systemSetting().my}/account/orders">我的订单</a>
						</span>
                </li>
                <li>
						<span>
						<a href="${systemSetting().my}/account/orders?status=dbk">待补款订单
                            <div style="position: absolute;top: -5px;left: 85px;background: #ff6600;border-radius: 3px;color: #FFF;padding: 2px 3px;text-align: center;font: 200 8px Arial, Helvetica, sans-serif;">
                            <#if Session.waitOrder?exists>
                            ${Session.waitOrder!""}
                            <#else >
                                0
                            </#if>
                            </div>
                        </a>
                        </span>
                </li>
                <li>
						<span>
							<a href="${systemSetting().my}/account/orders?" target="_self" class="tran">我的anitoys</a>
							<div class="top_right_nav">
                                <a href="${systemSetting().my}/account/orders?status=dsh" target="_blank">已发货订单</a>
                                <a href="${systemSetting().my}/account/custService" target="_blank">售后订单</a>
                                <a href="${systemSetting().my}/coupon/coupons?status=0" target="_blank">优惠券</a>
                                <a href="${systemSetting().my}/favorite/searchUserFavoritePro" target="_blank">收藏的商品</a>
                                <a href="${systemSetting().my}/favorite/searchUserFavoriteBusi" target="_blank">收藏的商品</a>
                            </div>
						</span>
                </li>
                <li>
						<span>
							<a href="javascript:void(0);" target="_self" class="tran">帮助支持</a>
							<div class="top_right_nav">
                            <#if helpList??> 
								    <#list helpList as item>
											<a href="${systemSetting().doc}/front/helpsmanage/${item.id}.html" target="_self">
											<#if item.title?length gte 7>
												${item.title?substring(0,7)}...
											<#else>
												${item.title!""}
											</#if>
											
											</a>
									</#list>
                   		 		<#else >
                   		 		</#if>
                            </div>
						</span>
                </li>
                <li>
						<span>
							<a href="javascript:void(0);" target="_blank" class="tran">网站导航</a>
							<div class="top_right_nav imgS">
							<#if businessList??>
                            <#list businessList as item>
                                    <a href="${systemSetting().business}/business/businessSelect?businessId=${item.id!""}"
                                       target="_blank">
                                        <img src="${systemSetting().imageRootPath}/${item.maxPicture!""}"/>
                                    </a>
                            </#list>
                            </#if>
                            </div>
						</span>
                </li>
                <li>
						<span>
						<a href="javascript:void(0);" target="_blank" class="tran">关注anitoys</a>
							<div class="top_right_nav w100">
                                <a href="javascript:void(0);" target="_blank">
                                    <img src="${systemSetting().staticSource}/shopindex/layout/img/pic/towcode.png"/>
                                </a>
                            </div>
						</span>
            	    </li>
            		</ul>
				</div>
			</div>
		</div>
<div class="omt_top" style="position: relative;">
    <div class="omt_top_use">
        <ul class="clearfix">
            <li><a href="${systemSetting().www}"><img
                    src="${systemSetting().staticSource}/shopindex/layout/img/omt/logo.png"> </a></li>
            <li class="int_left" style="float:right">
                <form id="searchForm" method="post" action="${systemSetting().search}/search.html" target="_blank">
                    <input type="text" name="key" class="inputtext" value="" id="mq" maxlength="24"
                           onfocus="if(this.value==&#39;ANI大搜查&#39;) {this.value=&#39;&#39;;}this.style.color=&#39;#333&#39;;"
                           onblur="if(this.value==&#39;&#39;) {this.value=&#39;ANI大搜查&#39;;this.style.color=&#39;#999999&#39;;}">
                    <button type="submit" onclick="search();" class="subt-btn">搜整站</button>
                </form>
            </li>
        </ul>
        <ul class="inf">
            <li style="float:right">
                <div class="menuc_right">
                    <!--购物车-->
                    <div class="car">
                        <div class="carDesc">
                            <span class="carlogo"><i>${productList?size}</i></span>
                            <span class="carm"><a href="${systemSetting().card}/cart/cart.html">我的购物车</a></span>
                        </div>
                        <div class="carDetail">
                            <#if productList?? && productList?size gt 0>
                                <#list productList as item>
                                    <div class="carItem">
                                        <div class="img"><img src="${systemSetting().imageRootPath}/${item.picture}"/>
                                        </div>

                                        <div class="itemDetail">
                                            <a href="${systemSetting().item}/product/${item.id!""}.html">${item.name!""}</a>
                                            <span>有特典</span>
                                            <span>¥ ${item.nowPrice}</span>
                                            <a href="#" onclick="deleteFromCart('${item.pSpecId!""}')">删除</a>
                                        </div>
                                    </div>
                                </#list>
                            </#if>
                            <div class="total">
                                <span>共件${productList?size}商品 <b>共计¥${cartInfo.amount!""}</b></span>
                                <a href="${systemSetting().card}/cart/cart.html">查看购物车</a>
                            </div>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<form action="${systemSetting().card}/cart/delete" method="POST" id="formDelete">
			<input type="hidden" name="id">
		</form>
		<script type="text/javascript">
		//单个删除购物车商品
		function deleteFromCart(productId){
			if(productId){
				$("#formDelete :hidden[name=id]").val(productId);
				$("#formDelete").submit();
			}
		}
		</script>
</#macro>